home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
windows
/
graphs
/
multicon.arj
/
MICONDOC.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-10
|
3KB
|
133 lines
//*************************************************************
// File name: MICONDOC.H
//
// Description:
// AppWizard generated implementation for the CMulticonDoc class
//
// History: Date Author Comment
// 3/8/94 FJB Created
//
// Written by Microsoft Product Support Services, Windows Developer Support
// Copyright (c) 1994 Microsoft Corporation. All rights reserved.
//*************************************************************
#include "stdafx.h"
#include "multicon.h"
#include "micondoc.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
//*************************************************************
// Class:
// CMulticonDoc
//
// Description:
// AppWizard generated doc class.
//
// Derived from:
// CDocument
//
// Data Members:
// None
//
// Member Functions:
// CMulticonDoc : Constructor
// ~CMulticonDoc : Destructor
// Serialize : AppWizard generated
// AssertValid : AppWizard generated
// Dump : AppWizard generated
// OnNewDocument : AppWizard generated
// Rand : Returns a random number within specified range.
//
//
// History: Date Author Comment
// 3/8/94 FJB Created
//
//*************************************************************
IMPLEMENT_DYNCREATE(CMulticonDoc, CDocument)
BEGIN_MESSAGE_MAP(CMulticonDoc, CDocument)
//{{AFX_MSG_MAP(CMulticonDoc)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMulticonDoc construction/destruction
CMulticonDoc::CMulticonDoc()
{
// TODO: add one-time construction code here
}
CMulticonDoc::~CMulticonDoc()
{
}
BOOL CMulticonDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CMulticonDoc attributes
int CMulticonDoc::Rand(int nMax, int nMin /* =0 */ )
{
nMax -= nMin;
nMax = rand() / (RAND_MAX/nMax) + 1;
nMax += nMin;
return nMax;
}
/////////////////////////////////////////////////////////////////////////////
// CMulticonDoc serialization
void CMulticonDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CMulticonDoc diagnostics
#ifdef _DEBUG
void CMulticonDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CMulticonDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMulticonDoc commands